package com.yanfan.zutai.mapper;


import com.yanfan.zutai.domain.BMqttSubscribe;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * mqtt主题订阅Mapper接口
 *
 * @author ruoyi
 * @date 2021-08-24
 */
@Service
public interface BMqttSubscribeMapper {
    /**
     * 查询mqtt主题订阅
     *
     * @param id mqtt主题订阅ID
     * @return mqtt主题订阅
     */
    BMqttSubscribe selectBMqttSubscribeById(Long id);

    /**
     * 查询mqtt主题订阅列表
     *
     * @param bMqttSubscribe mqtt主题订阅
     * @return mqtt主题订阅集合
     */
    List<BMqttSubscribe> selectBMqttSubscribeList(BMqttSubscribe bMqttSubscribe);

    /**
     * 新增mqtt主题订阅
     *
     * @param bMqttSubscribe mqtt主题订阅
     * @return 结果
     */
    int insertBMqttSubscribe(BMqttSubscribe bMqttSubscribe);

    /**
     * 修改mqtt主题订阅
     *
     * @param bMqttSubscribe mqtt主题订阅
     * @return 结果
     */
    int updateBMqttSubscribe(BMqttSubscribe bMqttSubscribe);

    /**
     * 删除mqtt主题订阅
     *
     * @param id mqtt主题订阅ID
     * @return 结果
     */
    int deleteBMqttSubscribeById(Long id);

    /**
     * 批量删除mqtt主题订阅
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    int deleteBMqttSubscribeByIds(Long[] ids);
}
